
import ThemeContext from '../theme_context/ThemeContext';

function withTheme(OriginComponent){
  return (props)=>{
    return (
      <div>
        <ThemeContext.Consumer>
          {
            value=>{
              return <OriginComponent {...value} {...props}/>
            }
          }
        </ThemeContext.Consumer>
      </div>
    )
  }
}

export default withTheme;